﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditAdminInfo.aspx.cs" Inherits="EditAdminInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
     <link type="text/css" href="css/style.css" rel="stylesheet" />
     <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="js/lib.js"></script>
    <script type="text/javascript">
    function CheckInput(){
        var obj=$("#txtOldPassword");
        if(!$.RealLengthBetween(obj.val(),1,20)){
            alert("旧密码长度为1-20个字符，请重新输入！");
            obj.focus();
            return false;
        }
        obj=$("#txtPasswords");
        if(!$.RealLengthBetween(obj.val(),1,20)){
            alert("密码长度为1-20个字符，请重新输入！");
            obj.focus();
            return false;
        }
        if($("#txtComPasswords").val()!=obj.val()){
            alert("确认密码不一致，请重新输入！");
            $("#txtComPasswords").focus();
            return false;
        }
        return true;
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
     <div id="conBox">
            <div class="grid-box" style="padding-top: 10px">
                <table class="form-table">
                    <thead>
                        <tr>
                            <td colspan="3"></td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="tr1">
                            <th>
                                用户名：
                            </th>
                            <td>
                                <asp:Label ID="lblUserName" runat="server" Text=""></asp:Label></td>
                        </tr>
                        <tr>
                            <th>
                                姓名：
                            </th>
                            <td>
                               <asp:TextBox ID="txtName" runat="server" CssClass="txtbox" Width="180" ></asp:TextBox></td>
                        </tr>
                        <tr class="tr1">
                            <th>
                                旧密码：
                            </th>
                            <td>
                               <asp:TextBox ID="txtOldPassword" runat="server" CssClass="txtbox" Width="180" TextMode="Password"></asp:TextBox><span>*</span></td>
                        </tr>
                        <tr>
                            <th>
                                密码：
                            </th>
                            <td>
                               <asp:TextBox ID="txtPasswords" runat="server" CssClass="txtbox" Width="180" TextMode="Password"></asp:TextBox>
                                <span>* (长度为1-20个字符，由任意字符组成。)</span></td>
                        </tr>
                        <tr class="tr1">
                            <th>
                                确认密码：
                            </th>
                            <td>
                               <asp:TextBox ID="txtComPasswords" runat="server" CssClass="txtbox" Width="180" TextMode="Password"></asp:TextBox><span>*</span></td>
                        </tr>
                        <tr>
                            <th>
                            </th>
                            <td>
                                <asp:Button ID="btnSubmit" runat="server" Text="提 交"  CssClass="button" OnClick="btnSubmit_Click" OnClientClick="return CheckInput()" /></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
